

import Fetch from "../utils/fetch"
import Request from "../utils/request"


// 统一接口文件配置

// 首页轮播图接口    axios实现

// export  const   banner =  () => Fetch.get("/banner")
export const banner = () => Request({
    url: "/api/banner",
    headers: {
        DeviceType: "H5"
    }
})

// 首页接口
// export  const   cartList =  () => Fetch.get("/recommend/appIndex")
export const cartList = () => Request({
    url: "/api/recommend/appIndex",

})
// 课程详情
export const courseInfo = (data) => Request({
    url: `/api/courseInfo/basis_id=${data}`,
})
// 讲师详情
export const teacher = (data) => Request({
    url: `/api/teacher/${data}`,
})

// 课程
export const courseBasis = (data) => Request({
    url: `/api/courseBasis?`,
})
// 课程筛选
export const courseBasissx = (data) => Request({
    // page=1 & order_by=0& course_type=10& classify_id=0&
    url: `/api/courseBasis`,
    // method:'post',
    params: data,
})

//登录
// export const login = (data) => Fetch.post('/login',data);
export const login = (data) => Request({
    url: `/api/login`,
    method: 'post',
    data: data,
});

// 登录信息
export const getUCenterInfo = (data) => Request({
    url: `/api/getUCenterInfo`,
});
// 登录个人信息
export const userInfo = (data) => Request({
    url: `/api/userInfo`,
});
// 注册验证码
export const smsCode = (data) => Request({
    url: `/api/smsCode`,
    method: 'post',
    data:data,
});


